#include <iostream>
using namespace std;

int GetResult(vector &list)
{
	int i,j,k;
	cin>>i;
	for(i=0;i<100;i++)
	{
		for(j=0;j<100;j++)
		{
			k=100-i-j;
			if(15*i+9*j+k==300)
			{
				cout<<i<<" "<<j<<" "<<k<<endl;
			}
		}
	}
	return 0;
}

int main()
{
	GetResult();
	return 0;
} 
